﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using WatiN.Core;

namespace WatiN.Sharepoint.WebControls
{
    public class PeoplePicker : Control<Span>
    {
        public void TypeText(string text)
        {
            Div nameTextbox = Element.Div(Find.ByName("upLevelDiv"));
            nameTextbox.SetAttributeValue("innerHTML", text);
            
            Image nameChecker = Element.Image(Find.ByTitle("Check Names"));
            nameChecker.Click();
        }
    }
}
